#include <QCoreApplication>
#include <math.h>
#include<iostream>
using namespace std;
main()
{
double a,b,P,S;
cout<<"Dlina pryamougonika a=";
cin>>a;
cout<<"Shirina pryamougonika b=";
cin>>b;
 P=2*(a+b);
 S=a*b;
cout<<"Pirimetr pryamougolnika P="<<P;
cout<<"Ploschad pryamougolnika S="<<S;
return 0;
}
